package com.users.rn.kit.bridge.impl.im

import com.users.rn.kit.bridge.RNBridgeModuleName
import com.users.rn.kit.bridge.SimpleRNBridge
import com.facebook.react.bridge.Promise
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContext
import com.facebook.react.bridge.ReadableMap

/**

 * 作者：wolf on 1/11/21 11:20

 * 邮箱：bluce

 */

abstract class KitImModule : SimpleRNBridge() {
    companion object {
        const val RN_MODULE_NAME: String = RNBridgeModuleName.RN_IM
    }

    override fun moduleName(): String {
        return RN_MODULE_NAME
    }

    /**
     * 发送消息
     */
    abstract fun sendMessage(
        context: ReactContext,
        message: ReadableMap,
        promise: Promise
    )

    /**
     * 获取数据漫游
     */
    abstract fun getRoamingMessageList(
        context: ReactContext,
        params: ReadableMap,
        promise: Promise
    )


}